package cn.tedu.charging.device.dao.mapper;

import cn.tedu.charging.device.pojo.po.GunInfoPO;
import cn.tedu.common.pojo.param.GunStatusUpdateParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface GunMapper extends BaseMapper<GunInfoPO> {
    @Update("update charging_gun_info set gun_status = #{status} where id = #{gunId}")
    int updateGunStatus(GunStatusUpdateParam param);
}
